package front_router

import (
	"blog_go/api/front_api"
	"blog_go/middleware"
)

func (r routerGroup) CommentRouter() {
	commentApi := front_api.ApiGroupApp.CommentApi
	r.POST("/add", middleware.JwtAuthHandle(), commentApi.CommentAdd)
	r.GET("/list", commentApi.CommentList)
	r.POST("/digg", commentApi.CommentDigg)
	r.DELETE("/del", middleware.JwtAuthAdmin(), commentApi.CommentDel)
}
